<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/IncludeTop.jsp" %>   
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/moniterGunqiu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
			
<table width="100%" border="1">
	
		<tr><td colspan="7" width="100%" align="center">足球赛事综合列表</td></tr>
		 
			<tr>
				<th align="center" width="4%">赛区</th>
				<th align="center" width="8%">时间</th>
				<th align="center" width="22%">主客队伍</th>
				<th align="center" width="7%">比分</th>
				<th align="center" width="22%">让球</th>
				<th align="center" width="25%">大/小</th>
				<th align="center" width="11%">操作</th>
 			</tr>
 			
		<c:forEach var="event" items="${events}">
			<c:set var="map" value="${requestScope.counter[event.id]}" />
			<tr id="<c:out value="${event.id}"/>">
				<td align="center"><c:out value="${event.comp.league.name_zh}" /></td>
				<td align="center"><fmt:formatDate value="${event.comp.time}" type="both" /></td>
				<td>
					<c:out value="${event.comp.home.name_zh}"></c:out>[主]
					<br/>
					<c:out value="${event.comp.road.name_zh}"></c:out>
				</td>
				<td align="center" id="<c:out value="${event.comp.id}"/>">
					<input type="text" size="7" name="nowResult" value="<c:out value="${event.comp.nowResult }" />" />
				</td>
				<td align="right">
				<table>
					<tr>
						<td align="right">
							<c:if test="${event.rangqiu.who2who eq '主让客'}">
								<font color="blue"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
							</c:if>
							<input type="text" size="7" value="<c:out value="${event.rangqiu.home}" />" id="rangqiu.home" name="rangqiu.home" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rq_home">
									<c:out value="${map['rq_home']}" />/<c:out value="${map['srq_home']}"/>
								</a>
							</font>&nbsp;
						</td>
					</tr>
					<tr>
						<td align="right">
							<c:if test="${event.rangqiu.who2who eq '客让主'}">
								<font color="blue"><c:out value="${event.rangqiu.pankou}" /></font>&nbsp;
							</c:if>
							<input type="text" size="7" value="<c:out value="${event.rangqiu.road}" />" name="rangqiu.road" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rq_road">
									<c:out value="${map['rq_road']}" />/<c:out value="${map['srq_road']}"/>
								</a>
							</font>&nbsp;
						</td>
					</tr>
				</table>
				</td>
				<td align="right">
				<table>
					<tr>
						<td align="right">
							大
							<c:out value="${event.daxiao.pankou}" />&nbsp;
							<input type="text" size="7" value="<c:out value="${event.daxiao.home}" />" name="daxiao.home" id="daxiao.home" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dx_home">
									<c:out value="${map['dx_home']}" />/<c:out value="${map['sdx_home']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td align="right">
							小 <c:out value="${event.daxiao.pankou}" />&nbsp;
							<input type="text" size="7" name="daxiao.road" value="<c:out value="${event.daxiao.road}"/>" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dx_road">
									<c:out value="${map['dx_road']}" />/<c:out value="${map['sdx_road']}"/>
								</a>
							</font>&nbsp;
						</td>
					</tr>
				</table>
				</td>
				<td align="center">
					<input type="button" value="提交" name="submit" onclick="clickSubmit(this)"  />
					<input type="button" value="封盘" onclick="clickClose(this)"/>
					<input type="button" value="暂停赛事" onclick="clickStop(this)"/>
					<input type="button" value="删除" onclick="clickDel(this)"  />
				</td>
			</tr>
		</c:forEach>
	</table>
	<%@ include file="/WEB-INF/jsp/pager.jsp"%>
</body>
</html>